package com.yzc.mihuyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yzc.mihuyou.entity.Attention;
import com.yzc.mihuyou.entity.User;
import com.yzc.mihuyou.vo.JsonResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郭权文
 * @since 2022-05-06
 */
public interface AttentionService extends IService<Attention> {
    List<User> getAttention (Long id);//查看关注列表

    List<User> getFans (Long id);

    boolean relation (Attention attention);

    JsonResult addAttention (Attention attention);//添加关注

    JsonResult delAttention (Attention attention);

    long allFans(long id);

    long allAttention(long id);

}
